<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
	<title>1号店登录</title>
	<link href="__PUBLIC__/css/login.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/js/jquery-1.7.2.min.js"></script>
</head>
<style type="text/css">
	
	#error_kg{
		color:red;
		margin-left:45px;
		height:30px;
	}
</style>
<body>
		   


	
   <div class="mod_left_banner"><a href="#" id="imgLink" target="_blank"><img id="img" src="__PUBLIC__/images/login_pic.jpg" height="300" width="400"></a></div>
	
	<div class="login_wrap">
		<div class="wrap clearfix">
			<div class="mod_login_wrap login_entry_css">
				<div class="clearfix" style="position: relative;">
	            	<div style="position: relative; padding-left: 160px; padding-right: 160px; height: 40px;">
	            		<h3 style="margin: 0 auto;float: none; width: 100%;">1号店用户登录</h3>
	            	</div>
	            	
	            	<a style="position: absolute; right: 15px; top: 0px;" href="{|U:'User/login'}" class="regist_new blue_link">注册新账号</a>
	            </div>

	            <!-- 表单提交 -->
	            <form action="{|U:'User/login'}" method="post" id="myform">
				<div class="login_form">
					<input id="login_source" value="1" type="hidden">
	
					<i class="arraow">&nbsp;</i>
					<div id="error_kg">
					<!-- <p id="error_tips" class="error" style="display:none" >帐号或密码不能为空！</p> -->
					</div>
					<div class="form_item_wrap"> 
					    <div class="form_item">
					        <label>用户名</label>
					        <input id="un" name="username" tabindex="1" class="ipt ipt_username gay_text" style="outline: none;" type="text" onclick="hide()" onblur="Verification(un)">
					    </div>
					    <div class="form_item">
					        <label>密码</label>
					        <input id="pass" name="pwd" tabindex="2" class="ipt ipt_password" style="outline: none;" type="password" onclick="hide()" onblur="Verification(pass)">
					    </div>
					   
					    
					    
					    <input id="login_button" type="submit" class="login_btn" value="登录" />
					
					</div>
					
					
				</form>
			</div>
			
		</div>
	</div>

	<div id="simplefooter"><a href="http://www.miibeian.gov.cn/" target="_blank">沪ICP备13044278号</a>|<a>合字B1.B2-20130004</a>|<a href="#" data-ref="YHD_Footer_Licence" target="_blank">营业执照</a><p>Copyright © 1号店网上超市 2007-2014，All Rights Reserved</p></div><div>


<script>
	$(document).ready(function(){
		
});

    function shownull(){
    	$("#error_tips").show();
    }

    function show(){
    	//显示错误
    	$("#error_tips").show();
    }
    function hide(){
    	//隐藏错误
    	$("#error_tips").hide();
    }
    function Verification(job){
    	var name = $("#un").val();
    	var pass = $("#pass").val();
    	if(name != '' && pass != ''){
    		$("#login_button").attr('onclick','return true');
    	}else{
    		$("#error_tips").html('帐号或密码不能为空！');
    		show();
    	}
    	

    }
    $(document).ready(function(){

    	if(Think.get.a == '0'){
    		$("#error_tips").html('帐号或密码错误！');
    		show();
    	}
    });

 
</script>
</body></html>